import request from '@/utils/request'


// 列表
export function certList(query) {
    return request({
        url: '/h5/cert/list',
        method: 'get',
        params: query
    })
}
// 新增
export function addCert(data) {
    return request({
        url: '/h5/cert',
        method: 'post',
        data: data
    })
}

// 详情
export function getCert(certId) {
    return request({
        url: '/h5/cert/' + certId,
        method: 'get'
    })
}

// 修改
export function editCert(data) {
    return request({
        url: '/h5/cert',
        method: 'put',
        data: data
    })
}

// 删除
export function removeCert(certId) {
    return request({
        url: '/h5/cert/' + certId,
        method: 'delete'
    })
}